package com.sina.shop.core.domain;

import com.sina.shop.web.PagingForm;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2017-11-14-12:51
 */
public class BaseCriteria extends PagingForm {

    /**
     * 查询起点
     */
    @DateTimeFormat(pattern = "uuuu-MM-dd HH:mm:ss")
    private LocalDateTime createStart;
    /**
     * 查询结束点
     */
    @DateTimeFormat(pattern = "uuuu-MM-dd HH:mm:ss")
    private LocalDateTime createEnd;

    /**
     * 分页查询优化id
     */
    private Long lastId;

    /**
     * 是否拥有总行数
     */
    private Boolean noRowCount = Boolean.TRUE;

    public LocalDateTime getCreateStart() {
        return createStart;
    }

    public void setCreateStart(LocalDateTime createStart) {
        this.createStart = createStart;
    }

    public LocalDateTime getCreateEnd() {
        return createEnd;
    }

    public void setCreateEnd(LocalDateTime createEnd) {
        this.createEnd = createEnd;
    }

    public Long getLastId() {
        return lastId;
    }

    public void setLastId(Long lastId) {
        this.lastId = lastId;
    }

    public Boolean getNoRowCount() {
        return noRowCount;
    }

    public void setNoRowCount(Boolean noRowCount) {
        this.noRowCount = noRowCount;
    }
}
